package com.ruoyi.system.domain.wx;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信用户对象 wx_user
 * 
 * @author mix
 * @date 2023-08-07
 */
public class WxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private String userId;

    /** 显示id */
    @Excel(name = "显示id")
    private Integer viewId;

    /** 分享码 */
    @Excel(name = "分享码")
    private String shareNum;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String userMail;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String loginPassword;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;

    /** 注册时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userRegtime;

    /** 注册IP */
    @Excel(name = "注册IP")
    private String userRegip;

    /** 最后登录时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userLasttime;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String userLastip;

    /** M(男) or F(女) */
    @Excel(name = "M(男) or F(女)")
    private String sex;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** open_id */
    @Excel(name = "open_id")
    private String openId;

    /** 头像图片路径 */
    @Excel(name = "头像图片路径")
    private String pic;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 会话密匙 */
    @Excel(name = "会话密匙")
    private String sessionKey;

    public Integer getViewId() {
        return viewId;
    }

    public void setViewId(Integer viewId) {
        this.viewId = viewId;
    }

    public String getShareNum() {
        return shareNum;
    }

    public void setShareNum(String shareNum) {
        this.shareNum = shareNum;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setUserMail(String userMail) 
    {
        this.userMail = userMail;
    }

    public String getUserMail() 
    {
        return userMail;
    }
    public void setLoginPassword(String loginPassword) 
    {
        this.loginPassword = loginPassword;
    }

    public String getLoginPassword() 
    {
        return loginPassword;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setUserRegtime(Date userRegtime) 
    {
        this.userRegtime = userRegtime;
    }

    public Date getUserRegtime() 
    {
        return userRegtime;
    }
    public void setUserRegip(String userRegip) 
    {
        this.userRegip = userRegip;
    }

    public String getUserRegip() 
    {
        return userRegip;
    }
    public void setUserLasttime(Date userLasttime) 
    {
        this.userLasttime = userLasttime;
    }

    public Date getUserLasttime() 
    {
        return userLasttime;
    }
    public void setUserLastip(String userLastip) 
    {
        this.userLastip = userLastip;
    }

    public String getUserLastip() 
    {
        return userLastip;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }

    @Override
    public String toString() {
        return "WxUser{" +
                "userId='" + userId + '\'' +
                ", viewId=" + viewId +
                ", shareNum='" + shareNum + '\'' +
                ", nickName='" + nickName + '\'' +
                ", userMail='" + userMail + '\'' +
                ", loginPassword='" + loginPassword + '\'' +
                ", modifyTime=" + modifyTime +
                ", userRegtime=" + userRegtime +
                ", userRegip='" + userRegip + '\'' +
                ", userLasttime=" + userLasttime +
                ", userLastip='" + userLastip + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", openId='" + openId + '\'' +
                ", pic='" + pic + '\'' +
                ", status='" + status + '\'' +
                ", sessionKey='" + sessionKey + '\'' +
                '}';
    }
}
